package net.suncaper.mvc.model.domain;

import java.math.BigDecimal;

/**
 * 酒店信息实体类
 */
public class Hotel {
    /**
     * 酒店名称
     */
    private String hotelName;

    /**
     * 国家
     */
    private String country;

    /**
     * 城市
     */
    private String city;

    /**
     * 图片URL
     */
    private String imageUrl;

    /**
     * 经度（与数据库decimal(10,6)对应）
     */
    private BigDecimal longitude;

    /**
     * 纬度（与数据库decimal(10,6)对应）
     */
    private BigDecimal latitude;

    /**
     * 评分（与数据库decimal(2,1)对应）
     */
    private BigDecimal rating;

    // 无参构造函数
    public Hotel() {
    }

    // 全参构造函数
    public Hotel(String hotelName, String country, String city, String imageUrl, BigDecimal longitude, BigDecimal latitude, BigDecimal rating) {
        this.hotelName = hotelName;
        this.country = country;
        this.city = city;
        this.imageUrl = imageUrl;
        this.longitude = longitude;
        this.latitude = latitude;
        this.rating = rating;
    }

    // Getter 和 Setter 方法
    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getRating() {
        return rating;
    }

    public void setRating(BigDecimal rating) {
        this.rating = rating;
    }
}